package com.atguigu.maven.serverce;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atguigu.maven.bean.Department;
import com.atguigu.maven.mapper.DepartmentMapper;

@Service
public class DepartmentServiceImpl implements DepartmentServerce {
	
	@Autowired
	private DepartmentMapper departmentmapper;

	@Override
	public List<Department> getAllDepartments() {
		List<Department> allDept = departmentmapper.getAllDept();
		return allDept;
	}
	
	

}
